home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form frmMain
- Caption = "Form1"
- ClientHeight = 8490
- ClientLeft = 1020
- ClientTop = 1425
- ClientWidth = 7305
- Height = 8865
- Left = 975
- LinkTopic = "Form1"
- ScaleHeight = 8490
- ScaleWidth = 7305
- Top = 1095
- Option Explicit
- Sub Form_Load ()
- Initialize
- End Sub
- Sub Initialize ()
- Dim wSealLen%
- Dim ApplicationInfo As APPINFO
- Dim VBExample as VBExample
- Dim wErr%
- ApplicationInfo.bOverWriteSeal = False
- ApplicationInfo.szMagicString = "demomagicstring" & Chr$(0)
- ApplicationInfo.szAppName = CurDir$ & "\"& App.EXEName & ".EXE" & chr$(0)
- wSealLen% = Len(VBExample)
- wErr% = ValidateApplication(ApplicationInfo, wSealLen%, VBExample)
- If wErr% <> 0 Then
- 'Stop, an error
- Dim szErrorString As String * 250
- GetSealError wErr%, szErrorString
- MsgBox szErrorString
- Else
- 'HighLight bWinNT and press Shift-F9.
- 'You will be able to see the value..
- 'VBExample.bWinNT
- 'VBExample.bWin95
- 'VBExample.bWin31
- 'VBExample.dtExpirationDate
- 'VBExample.szCompany
- 'VBExample.szName
- 'VBExample.szMagicString
- End if
- End Sub
-